package com.ssky.bean.validator.core.rule;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

import java.util.List;

public class Rule {

    @XStreamAsAttribute
    private String id;

    @XStreamAsAttribute
    private String type;

    @XStreamAsAttribute
    private String errCode;

    @XStreamAsAttribute
    private String errMsg;

    @XStreamAsAttribute
    private String depExp;

    @XStreamAsAttribute
    private String fbTag;

    @XStreamAsAttribute
    private String fbValue;

    @XStreamAsAttribute
    private String depScope;

    @XStreamImplicit(itemFieldName = "property")
    private List<Property> propertys;

    @XStreamAsAttribute
    private String methodBody;

    @XStreamAlias("import")
    private String mImport;

    private String allDepExp;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getDepExp() {
        return depExp;
    }

    public void setDepExp(String depExp) {
        this.depExp = depExp;
    }

    public String getFbTag() {
        return fbTag;
    }

    public void setFbTag(String fbTag) {
        this.fbTag = fbTag;
    }

    public String getFbValue() {
        return fbValue;
    }

    public void setFbValue(String fbValue) {
        this.fbValue = fbValue;
    }

    public String getDepScope() {
        return depScope;
    }

    public void setDepScope(String depScope) {
        this.depScope = depScope;
    }

    public List<Property> getPropertys() {
        return propertys;
    }

    public void setPropertys(List<Property> propertys) {
        this.propertys = propertys;
    }

    public String getMethodBody() {
        return methodBody;
    }

    public void setMethodBody(String methodBody) {
        this.methodBody = methodBody;
    }

    public String getAllDepExp() {
        return allDepExp;
    }

    public void setAllDepExp(String allDepExp) {
        this.allDepExp = allDepExp;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public String getMImport() {
        return mImport;
    }

    public void setMImport(String mImport) {
        this.mImport = mImport;
    }
}
